﻿using LtMbs;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;

namespace KalahariTestingProject
{
    
    
    /// <summary>
    ///This is a test class for CommonTest and is intended
    ///to contain all CommonTest Unit Tests
    ///</summary>
    [TestClass()]
    public class CommonTest
    {


        private TestContext testContextInstance;
        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for wipQueue
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void wipQueueTest()
        {

            Assert.Inconclusive();

        }

        /// <summary>
        ///A test for updateConfigFile
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void updateConfigFileTest1()
        {
            string dateTime = System.DateTime.Now.ToString();
            LtMbs.Common_Accessor.updateConfigFile(dateTime);

        }

        /// <summary>
        ///A test for updateConfigFile
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void updateConfigFileTest()
        {
            int feedbackId = 0; // TODO: Initialize to an appropriate value
            LtMbs.Common_Accessor.updateConfigFile(feedbackId);
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for removeHTMLTags
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void removeHTMLTagsTest()
        {
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for LogErrorMessage
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void LogErrorMessageTest()
        {
            System.Exception errorHandler = new System.Exception("Unit test generated error");
            LtMbs.Common_Accessor.LogErrorMessage(errorHandler);
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for KmsAuthorize
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void KmsAuthorizeTest()
        {
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for CrmAutorize
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CrmAutorizeTest()
        {
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for Credential
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CredentialTest()
        {
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for CreateAuthorizationHeader
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CreateAuthorizationHeaderTest()
        {
            //object authorizationHeaderToValidate = LtMbs.Common_Accessor.CreateAuthorizationHeader();
            //System.Reflection.PropertyInfo[] authorizationHeaderProperties = authorizationHeaderToValidate.GetType().GetProperties();
            //Assert.IsTrue(authorizationHeaderProperties.Length > 0);s
            Assert.Inconclusive();
        }

        /// <summary>
        ///A test for Common Constructor
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan.Rihan-PC\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CommonConstructorTest()
        {
            LtMbs.Common_Accessor target = new LtMbs.Common_Accessor();
            Assert.IsNotNull(target);
        }
    }
}
